package com.work.chat.custom.server.pojo.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

@Data
public class QueryProductVO implements Serializable {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 商品条形码
     */
    private String productCommodityCode;

    /**
     * 商品名称
     */
    private String productTitle;

    /**
     * 商品进货价
     */
    private BigDecimal purchasePrice;

    /**
     * 商品零售价
     */
    private BigDecimal retailPrice;


    /**
     * 库存
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long productInventory;

    private Integer typeId;

    private String createBy;


    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createDate;


    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp lastUpdateDate;

    private String lastUpdateBy;
}
